import request from '@/router/axios';

export const getLevelsList = () => {
  return request({
    url: '/api/mes-warehouse/msd/standard/levels',
    method: 'get',
    params: {}
  });
};

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-warehouse/packing-operation/msd-operation-records',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const remove = (ids) => {
  return request({
    url: '/api/mes-warehouse/msd/standard/remove',
    method: 'post',
    params: {
      ids
    }
  });
};

export const add = (row) => {
  return request({
    url: '/api/mes-warehouse/msd/standard/submit',
    method: 'post',
    data: row
  });
};

export const getDetail = (packSn) => {
  return request({
    url: '/api/mes-warehouse/packing-operation/msd-operation-record-detail',
    method: 'get',
    params: {
      packSn
    }
  });
};
